ITEM = {}
Items = {}
	
ITEM.__index = ITEM

ITEM_INVALID = -1

ITEM_GEAR = 0
ITEM_QUEST = 1
ITEM_USABLE = 2
ITEM_BASIC = 3
ITEM_QUESTUSE = 4
ITEM_STARTQUEST = 5

ITEM_HEAD = 1
ITEM_SHOULDER = 2
ITEM_CHEST = 3
ITEM_LEGS = 4
ITEM_HANDS = 5
ITEM_FEET = 6
ITEM_TRINKET = 7
ITEM_RING = 8
ITEM_NECK = 9
ITEM_OFFHAND = 10
ITEM_MAINHAND = 11

ITEM_POOR = 1
ITEM_COMMON = 2
ITEM_UNCOMMON = 3
ITEM_RARE = 4
ITEM_EPIC = 5
ITEM_LEGENDARY = 6
ITEM_ADMIN = 7

ITEM_CLOTH = 1
ITEM_LEATHER = 2
ITEM_MAIL = 3
ITEM_PLATE = 4
--These numbers should guide the amount of AC you put on your armor. 
--Leather will give 2x the amount of armor as a standard cloth piece will, and so on.
--A recommended starting AC for poor quality cloth items is 5. 

ITEM_SOUNDS = {
{"Plate", "devin/blackbetty/menu/inventory/PickUpMetalLArge.wav", "devin/blackbetty/menu/inventory/PutDownLArgeMetal.wav"},
{"Weapon", "devin/blackbetty/menu/inventory/PickUpMetalSmall.wav", "devin/blackbetty/menu/inventory/PutDownSmallMEtal.wav"}, 
{"Rock", "devin/blackbetty/menu/inventory/PickUpRocks_Ore01.wav", "devin/blackbetty/menu/inventory/PutDownRocks_Ore01.wav"}
}

ITEM.ItemID = 0
ITEM.Name = "Worn Platemail Spaulders"
ITEM.Desc = {}
ITEM.Wearable = true
ITEM.ItemType = ITEM_GEAR
ITEM.EquipType = ITEM_SHOULDER
ITEM.Quality = ITEM_POOR
ITEM.Icon = "devin/blackbetty/items/shoulder/brown_shoulder.png"
ITEM.Stats = {
{"Armor", 20}
}
ITEM.Enchants = {}
ITEM.PickupType = "Plate"

local _R = debug.getregistry( )
	_R.Items = ITEM
local n, m

local curindex = 1

for n, m in ipairs( file.Find( "gamemodes/RPGDM/gamemode/items/*.lua", "MOD" ) ) do
	
	print( "items/" .. m)
	AddCSLuaFile( "items/" .. m )
	include( "items/" .. m)
		
	
	
	local ITEM = table.Copy(_R.Items)
	
	table.insert( Items, ITEM )
		curindex = curindex + 1
end

